package slidingpenguins.slideshow.model {

	public final class AspectRatio {
		private var _width:uint;
		private var _height:uint;

		public function AspectRatio(width:uint, height:uint) {
			if (width <= 0 || height <= 0) {
				throw new ArgumentError();
			}

			_width = width;
			_height = height;
		}

		public function get width():uint {
			return _width;
		}

		public function get height():uint {
			return _height;
		}

		public function get ration():Number {
			return width / height;
		}
		
		public function toString():String {
			return "" + width + ":" + height;
		}
		
	}
}
